package vorlesung1110

import scala.math._

object Ex9 {
  def main(args: Array[String]): Unit = {
    printFunction(sin, Pi/2)
  }

  def printFunction(f: Double => Double, values: Double*) = {
    for (x <- values)
      println(f(x) + " ")
    println
  }
}
